package com.icloud.article.boot.dto;

import com.icloud.common.core.constant.ValidateConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class IMInviteDto {
    @ApiModelProperty(value = "客户Id,受邀请人的Id", required = true)
    @NotNull(message=ValidateConstant.NOT_NULL)
    private Long customerId;
    @ApiModelProperty(value = "申请人Id", required = true)
    @NotNull(message= ValidateConstant.NOT_NULL)
    private Long applicantId;
    @ApiModelProperty(value = "申请人昵称", required = true)
    @NotEmpty(message= ValidateConstant.NOT_EMPTY)
    private String applicantNickname;
    @ApiModelProperty(value = "申请人头像url", required = true)
    @NotEmpty(message= ValidateConstant.NOT_EMPTY)
    private String applicantAvatarUrl;
    @ApiModelProperty(value = "邀请内容", required = true)
    @NotEmpty(message= ValidateConstant.NOT_EMPTY)
    private String content;
    @ApiModelProperty("群组Id")
    private String groupId;
    @ApiModelProperty(value = "消息类型, FRIEND_APPLY, JOIN_GROUP_APPLY, INVITE_GROUP", required = true)
    @NotEmpty(message= ValidateConstant.NOT_EMPTY)
    private String messageType;
}
